#ifndef CHATDIALOG_H
#define CHATDIALOG_H

#include <QWidget>
#include "global_client.h"
#include "QTime"

namespace Ui {
class ChatDialog;
}

class ChatDialog : public QWidget
{
    Q_OBJECT

public:
    explicit ChatDialog(QWidget *parent = nullptr);
    ~ChatDialog();

private slots:
    void on_toolButton_send_clicked();

    void on_pushButton_close_clicked();

    void on_toolButton_receiveFile_clicked();

    void on_toolButton_sendFile_clicked();

private:
    Ui::ChatDialog *ui;
    ChatHistory chat;

    void refreshChatHistoryList();
};

#endif // CHATDIALOG_H
